#ifndef USBDEVICEWORKER_H
#define USBDEVICEWORKER_H

#include <QObject>

#include "x_hiddevice.h"

class UsbDeviceWorker : public QObject
{
    Q_OBJECT
public:
    explicit UsbDeviceWorker(QObject *parent = nullptr);


    void DoWork(const QString &partmeter);

    void HandleTimeOut(void);

    X_HidDevice* HID_Device;

    void CheckDeviceConnect(void);

signals:
    void PostMessage(uint8_t* Msg);

public slots:
    void RxMessage(uint8_t* Rxdata);

};

#endif // USBDEVICEWORKER_H
